//
   Created by 83617 on 2019/1/2.
extends ../layout
block content
   .container
      .row
         .col-md-2
            ul
               li: a(href="/") 社团列表
               li: a(href="/society/detail") 社团信息
               li: a(href="/list/activity") 活动列表
               li: a(href="/admin/society") 社团录入
               li: a(href="/admin/activity") 活动录入
         #inputSociety.col-md-9
            form.form-horizontal(enctype='multipart/form-data')
               input(type="hidden",name="society[_id]",value="#{society._id}")
               .form-group
                  label.col-sm-3.control-label(for="inputName") 社团名字
                  .col-sm-10
                     input#inputName.form-control(type="text",name="society[name]",value="#{society.name}")
               .form-group
                  label.col-sm-3.control-label(for="inputNum") 人数
                  .col-sm-10
                     input#inputNum.form-control(type="text",name="society[num]",value="#{society.num}")
               .form-group
                  label.col-sm-3.control-label(for="inputMaster") 会长
                  .col-sm-10
                     input#inputMaster.form-control(type="text",name="society[master]",value="#{society.master}")
               //.form-group
                  //label.col-sm-3.control-label(for="inputIcon") 徽标
                  //.col-sm-10
               input#inputIcon.form-control(type="hidden",name="society[icon]",value="#{society.icon}")

               //上传徽标
               .form-group
                  label.col-sm-3.control-label(for="inputIcon") 徽标
                  .col-sm-10
                     input#inputIcon(type="file",name="uploadIcon")

               .form-group
                  label.col-sm-3.control-label(for="inputDetail") 简介
                  .col-sm-10
                     input#inputDetail.form-control(type="text",name="society[detail]",value="#{society.detail}")
               .form-group
                  .col-sm-10.col-sm-offset-2
                  button.btn.btn-default(type="submit") 录入
   script(src="/my-js/admin.js")